<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .ptest{
            color: blue;
            font-size: 30px;
            /* 文字加粗 */
            font-weight: bold;
            /* 设置字体 */
            font-family:cursive;
            background: burlywood;
            /* text-decoration:underline; */
            /* text-decoration: line-through; */
            text-decoration:overline;
            /* 设置行高 */
            line-height: 100px;
            /* 水平居中 */
            text-align: left;
            /* 文本缩进 */
            text-indent: 30px;

        }
        span{
            color: blueviolet;
        }
    </style>
</head>
<body>
    <h1 class="h1test"></h1>
    <!-- span可以给文本中的一小段设置样式 -->
    <p class="ptest">托尔<span>斯泰</span></p>
    
</body>
</html>